package cn.csq.cloud.controller;

import cn.csq.cloud.pojo.Good;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author csq
 * @version 1.0.0
 * @ClassName GoodController.java
 * @Description TODO
 * @createTime 2022年01月11日 23:03:00
 */
@RestController
@RequestMapping("/good")
public class GoodController {

    @PostMapping("/getGood")
    public Good getGood() {
        Good good = new Good();
        good.setName("小米12");
        good.setUrl("www.baidu.com");
        good.setPrice(9999.99);
        return good;
    }
}
